<?php
/**
 * Created by PhpStorm.
 * User: Guangpeng Chen
 * Date: 15-10-29
 * Time: 上午9:04
 */
define('APP_PATH', '/var/www/html/new/d');
include '/var/www/html/new/com.inc.php';
include APP_PATH.'/class/SoapInit.class.php';
include APP_PATH.'/common/func.inc.php';



$soap = SoapInit::GetSoapInside();

include APP_PATH . '/module/alipay_refund/func.inc.php';
$ordernum = safetxt($_POST['ordernum']);
if (!$ordernum) exit;
$xml      = $soap->Order_Globle_Search("", "", "", "", "", "", "", "",
    "", "", "", "",$ordernum, "", "", "", "", "", "", "1", "0", "1",
    "0", "0", "", "0", "", "0", "", "", "", "0", "0");
$order_arr = simplexml_load_string($xml);
$FeeCost   = count_cost_fee(
    (int)$order_arr->Rec->UUtid,
    (int)$order_arr->Rec->UUtprice,
    (string)$order_arr->Rec->UUbegintime
);
$FeeCost  = (int)$order_arr->Rec->UUtnum * $FeeCost;//所有票数的取消费用
echo '{"code":200, "fee":'.$FeeCost.'}';